package com.tulingxueyuan.order.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author :tangweiliang
 * @date : 2023/3/21 23:30
 * 未来的你会感谢现在努力的自己
 */
@FeignClient(value = "ali-stock-seata",path = "/stock")
public interface Stockservice {

    @RequestMapping("/reduct")
    public String reduct(@RequestParam("productId") Integer productId);
}
